Grabs are non-failable now, we do not need to check for
the backend seat actually having been able to perform the
request.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4020>
return;
const grab = Main.pushModal(this, {actionMode: Shell.ActionMode.LOOKING_GLASS});
- if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
- Main.popModal(grab);
- return;
- }
-
this._grab = grab;
this._previousObj = null;
this._open = true;
return;
const grab = Main.pushModal(this, {actionMode: Shell.ActionMode.LOOKING_GLASS});
- if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
- Main.popModal(grab);
- return;
- }
-
this._grab = grab;
this.show();
this._open = true;